$OpenBSD: patch-cgi_notifications_c,v 1.2 2017/02/07 21:40:06 sthen Exp $
--- cgi/notifications.c.orig	Thu Dec 22 21:40:50 2016
+++ cgi/notifications.c	Tue Feb  7 21:24:21 2017
@@ -259,8 +259,8 @@ int main(void) {
 			printf("<input type='hidden' name='servicegroup' value='%s'>\n", escape_string(query_servicegroup_name));
 		} else
 			printf("<input type='hidden' name='%s' value='%s'>\n", (query_type == DISPLAY_HOSTS) ? "host" : "contact", (query_type == DISPLAY_HOSTS) ? escape_string(query_host_name) : escape_string(query_contact_name));
-		printf("<input type='hidden' name='ts_start' value='%lu'>\n", ts_start);
-		printf("<input type='hidden' name='ts_end' value='%lu'>\n", ts_end);
+		printf("<input type='hidden' name='ts_start' value='%lld'>\n", (long long)ts_start);
+		printf("<input type='hidden' name='ts_end' value='%lld'>\n", (long long)ts_end);
 		printf("<input type='hidden' name='limit' value='%d'>\n", result_limit);
 
 		printf("<table border='0' class='optBox'>\n");
